<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\modules\admin\models\CwTpl1Article */

$this->title = $model->ta1_title;
?>
<div class="cw-tpl1-article-view">

    <h1><?= Html::encode($this->title) ?></h1>
    <h3>超链接:<a href="<?= Yii::$app->urlManager->hostInfo.Yii::$app->urlManager->createUrl(['site/tpl1',"id" => $model->ta1_id]) ?>"><?= Yii::$app->urlManager->hostInfo.Yii::$app->urlManager->createUrl(['site/tpl1',"id" => $model->ta1_id]) ?></a></h3>
    <p>
        <?= Html::a('修改', ['update', 'id' => $model->ta1_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->ta1_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => '确定删除模板1文章<'.$model->ta1_title.'>?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'ta1_id',
            'ta1_title',
            'ta1_pic_url:url',
            'ta1_content:ntext',
            'ta1_json:ntext',
            'ta1_time',
        ],
    ]) ?>

</div>
